package com.sky.mapper;
import java.util.List;

import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface SetMealDishMapper {


    List<Long> getDishIdBySetmealDishes(List<SetmealDish> setmealDishes) ;
    

    List<Long> getSetmealIdsByDishIds(List<Long> dishIds);

    void deleteByIds(List<Long> ids);

    void insertBatch(List<SetmealDish> list);

    @Select(("select * from setmeal_dish where setmeal_id=#{id}"))
    List<SetmealDish> getBySetmealId(Long id);


    void save(List<SetmealDish> setmealDishes);

    void deleteBySetmealIds(List<Long> ids);
}
